From a8cc721e7ce698f439f6a2f32660170c1cbd825d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 21 Jan 2009 00:03:00 +0000 Subject: [PATCH] =?utf8?q?Bug=20567413=20=E2=80=93=20GtkComboBoxEntry=20do?= =?utf8?q?esn't=20emit=20"changed"=20signal=20on=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2009-01-21 Christian Dywan Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal on entry editing * gtk/gtkcombobox.c (gtk_combo_box_set_active): Return only if index is set. Patch by Carl-Anton Ingmarsson. svn path=/trunk/; revision=22152 --- ChangeLog | 8 ++++++++ gtk/gtkcombobox.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index acc43aa0b6..96681e5541 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-01-21 Christian Dywan + + Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal + on entry editing + + * gtk/gtkcombobox.c (gtk_combo_box_set_active): Return only if index + is set. Patch by Carl-Anton Ingmarsson. + 2009-01-20 Torsten Schoenfeld * gtk/gtkstyle.c: Add a "Since: 2.16" tag to gtk_style_get. diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index dc3aae1aa7..d0d73fcd58 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -4845,7 +4845,8 @@ gtk_combo_box_set_active (GtkComboBox *combo_box, { /* Save index, in case the model is set after the index */ combo_box->priv->active = index_; - return; + if (index_ != -1) + return; } if (index_ != -1) -- 2.30.2